﻿using Shop.Core.Share;
using Shop.Model.Dto.Block;
using Shop.Model.View.Block;

namespace Shop.IServices;

public interface IBlockAppService
{
    /// <summary>
    /// 银行卡列表
    /// </summary>
    /// <returns></returns>
    AppResult<List<BlockListVo>> BlockList();

    /// <summary>
    /// 添加银行卡
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    Task<AppResult> BlockAdd(BlockAddDto dto);

    /// <summary>
    /// 解绑银行卡
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult BlockUntie(long dto);
}